package com.coderman.infosys.auth.adapter.convert;

import com.coderman.infosys.auth.adapter.vo.system.MenuVO;
import com.coderman.infosys.auth.adapter.vo.system.request.CreateMenuRequestVO;
import com.coderman.infosys.auth.adapter.vo.system.request.UpdateMenuRequestVO;
import com.coderman.infosys.auth.domain.bo.system.MenuBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* @Description:MenuConvertervobo接口
* @Author:
* @CreateTime:2022-01-04 15:27:39
* @version v1.0
*/
@Mapper
public interface MenuConverter{
	MenuConverter INSTANCE = Mappers.getMapper(MenuConverter.class);

	/**
	 *
	 * @Description:
	 * @return MenuBO
	 */
	 MenuBO vo2bo(UpdateMenuRequestVO updateMenuRequestVO);
	/**
	 *
	 * @Description:
	 * @return List<MenuVO>
	 */
	 List<MenuVO> boList2voList(List<MenuBO> menuBOList);
	/**
	 *
	 * @Description:
	 * @return List<MenuBO>
	 */
	 List<MenuBO> vos2bos(List<CreateMenuRequestVO> createMenuRequestVOList);
	/**
	 *
	 * @Description:
	 * @return List<MenuBO>
	 */
	 List<MenuBO> voList2BoList(List<MenuVO> vOList);
	/**
	 *
	 * @Description:
	 * @return MenuVO
	 */
	 MenuVO bo2VO(MenuBO menuBO);
	/**
	 *
	 * @Description:
	 * @return MenuBO
	 */
	 MenuBO vo2bo(CreateMenuRequestVO createMenuRequestVO);
	/**
	 *
	 * @Description:
	 * @return List<MenuBO>
	 */
	 List<MenuBO> voList2boList(List<UpdateMenuRequestVO> updateMenuRequestVOList);
	/**
	 *
	 * @Description:
	 * @return MenuBO
	 */
	 MenuBO vo2bo(MenuVO menuVO);
}